<html>
<head>
<script language="javascript" type="text/javascript" src="themes/js/jquery-1.4.2.min.js"></script>

</head>
<body>
<!-- 
<script type="text/javascript">
$(document).ready(function(){
  $("#txt").ajaxSend(function(e,xhr,opt){
    $(this).html("正在请求：" + opt.url);
  });
  $("button").click(function(){
    $("#txt").load("admin.php?c=ceshi&a=shuchu");
  });
});
</script>
<div id="txt"><h2>通过 AJAX 改变文本</h2></div>
<button>改变内容</button>
 -->

<!-- 
<script type="text/javascript">
$(document).ready(function(){
  $("button").click(function(){
    $.getJSON("admin.php?c=ceshi&a=json",function(result){
      $.each(result, function(i, field){
        $("p").append(field + " ");
      });
    });
  });
});
</script>

<{$aacc}>
<button>获得 JSON 数据</button>
<p></p>
 -->



<script type="text/javascript">
$(document).ready(function(){
  $("#b01").click(function(){
  htmlobj=$.ajax({url:"admin.php?c=ceshi&a=json",async:false});
  $("#myDiv").html(htmlobj.responseText);
  });
});
</script>


<div id="myDiv"><h2>通过 AJAX 改变文本</h2></div>
<a id="b01">11</a>


</body>
 
</html>